package com.example.service;

import com.example.entity.Order;
import com.example.entity.PageBean;

import java.text.ParseException;
import java.time.LocalDateTime;
import java.util.List;

public interface OrderService {
     Order findByOrderid(String order_id);
     Integer insertOrder(Order order) throws ParseException;
     void updata(Order order);
     void delete(String order_id);

     Order findByOrderTableid(String tableId);
     PageBean orderList(Integer page, Integer pageSize, String query);
      String generateHexValue(int length);

     List<Order> orderListById(String customerId);

    List<Order> orderListByIdNo(String customerId);

    List<Order> getOrdersInTimeRange(LocalDateTime fiveSecondsAgo, LocalDateTime currentTime);
}
